#include <iostream>
using namespace std;

int main(){
    int * p=nullptr;
    p=new int;
    *p=6;
    cout<<*p<<endl<<p<<endl;
    delete p;
    p=new int[4];
    int i;
    for(i=0;i<4;i++){
        cout<<&p[i]<<endl;
    }
    cout<<p<<endl;
    delete [] p;
    return 0;
}
